package 二叉树;

public class BinaryNode<T> {

    T data;
    BinaryNode<T> left;
    BinaryNode<T> right;

   public BinaryNode(T data) {
        this.data = data;
        this.left = null;
        this.right = null;
    }

    public BinaryNode(T data, BinaryNode<T> left, BinaryNode<T> right) {
        this.data = data;
        this.left = left;
        this.right = right;
    }

}
